C development in Linux
OS: Ubuntu 20.04 LTS
Folder Structure
Create the git folder (and the standard subfolder structure of gqc) in user ~Home directory.
Setting up the environment
Make sure everything is up-to-date and install the packaged build tools
sudo apt update
sudo apt upgrade
sudo apt install build-essentialVerify the installation
whereis gcc make
gcc --version
make -vInstall man pages (optional):
sudo apt-get install manpages-dev man-db manpages-posix-devTest:
man 3 scanf
man 2 execve
man 2 forkCompiling and running
make testFor compiling and creating the executable of a c code file with name
<test>.c
Equivalent togcc test.c -o test